package org.hcf.data.service;

import org.hcf.data.entity.ChatMsg;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 聊天消息 服务类
 * </p>
 *
 * @author xianiyitiao
 * @since 2024-04-23
 */
public interface IChatMsgService extends IService<ChatMsg> {
    void updateReceive(long msgId, boolean isReceive);

    List<Long> getMessages(long userId, List<Long> groupIds, long msgId);

    ChatMsg getMessage(long msgId);
    List<ChatMsg> getMessages(List<Long> msgIds);

    ChatMsg getLastMessage(int type, long userId, long to);

    long getMaxMsgId();
}
